package chapter7;
import static utility.Print.*;

/**
 * Exercise 4: (2) Prove that the base-class constructors are (a) always called
 * and (b) called before derived-class constructors.
 */
class Art {
	Art() {
		print("Art constructor");
	}
}

class Drawing extends Art {
	Drawing() {
		print("Drawing constructor");
	}
}

class Cartoon extends Drawing {
	public Cartoon() {
		print("Cartoon constructor");
	}
}

public class Exercise3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Cartoon c = new Cartoon();

	}

}
